package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Date;

@Entity
@Table(name = "award_record")   // 定义数据库表名
public class AwardRecord implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "union_id", nullable = false)
    private String unionId;

    @Column(name = "activity_id", nullable = false)
    private String activityId;

    @Column(name="award_type",nullable = false)
    private String awardType;

    @Column(name="award_content",nullable = false)
    private String awardContent;

    @Column(name = "register_time")
    private ZonedDateTime registerTime;

    @Column(name = "card_url")
    private String cardUrl;

    @Column(name = "express_address")
    private String expressAddress;

    @Column(name = "express_mobile")
    private String expressMobile;

    @Column(name = "addressee")
    private String addressee;

    @Column(name = "create_time", nullable = false)
    private Date createTime;

    @Column(name = "state", nullable = false)
    private boolean state;

    @Column(name = "activity_name")
    private String activityName;

    @Column(name = "gift_id")
    private String giftId;

    @Column(name = "card_id")
    private String cardId;

    @Column(name = "close_times")
    private Integer closeTimes = 0;

    @Column(name = "note_id")
    private String noteId ;

    public Integer getCloseTimes() {
        return closeTimes;
    }

    public void setCloseTimes(Integer closeTimes) {
        this.closeTimes = closeTimes;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getGiftId() {
        return giftId;
    }

    public void setGiftId(String giftId) {
        this.giftId = giftId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getAwardType() {
        return awardType;
    }

    public String getAwardContent() {
        return awardContent;
    }

    public void setAwardContent(String awardContent) {
        this.awardContent = awardContent;
    }

    public void setAwardType(String awardType) {
        this.awardType = awardType;
    }

    public ZonedDateTime getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(ZonedDateTime registerTime) {
        this.registerTime = registerTime;
    }

    public String getCardUrl() {
        return cardUrl;
    }

    public void setCardUrl(String cardUrl) {
        this.cardUrl = cardUrl;
    }

    public String getExpressAddress() {
        return expressAddress;
    }

    public void setExpressAddress(String expressAddress) {
        this.expressAddress = expressAddress;
    }

    public String getExpressMobile() {
        return expressMobile;
    }

    public void setExpressMobile(String expressMobile) {
        this.expressMobile = expressMobile;
    }

    public String getAddressee() {
        return addressee;
    }

    public void setAddressee(String addressee) {
        this.addressee = addressee;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }
}
